﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="home.ascx.cs" Inherits="Control_home" %>
<%@ Register Src="~/Control/HistoryCompany.ascx" TagName="History" TagPrefix="uc1" %>
<div class="Main-Content">
    <div class="title">
        <strong>LỊCH SỬ CÔNG TY </strong>
    </div>
    <div class="body" style="text-align: justify; width: 700px; background-color: White">
        <uc1:History ID="Histpry" runat="server" />
    </div>
</div>
<div class="Main-Content">
    <div class="title" style="text-transform: uppercase;">
        <strong>tin tức mới nhất </strong>
    </div>
    <div class="body" style="background-color: White; width: 700px">
        <asp:Repeater ID="repNews" runat="server" OnItemDataBound="ItemBound">
            <HeaderTemplate>
                <div class="tintuc" style="padding-top: 10px">
                    <ul>
            </HeaderTemplate>
            <ItemTemplate>
            <asp:HiddenField ID="hiddenfield" runat="server" Value='<%# Eval("IntId") %>' />
                <li style="padding-top: 0px; text-align: justify; border-bottom: none;">
                    <p class="thumb" visible='<%# string.IsNullOrEmpty(Eval("Photo").ToString().Trim()) == true ? true:false  %>'>
                        <img src='<%# Eval("Photo").ToString() %>' width="110" height="110" visible='<%# string.IsNullOrEmpty(Eval("Photo").ToString())  %>' />
                    </p>
                    <h3>
                        <a href='/News/Detail.aspx?t=tin-tuc&textid=<%# Eval("IntId") %>'>
                            <%# Eval("title_vn") %></a>
                    </h3>
                    <p class="small">
                        <%#DateTime.Parse(Eval("CreatedDate").ToString()).ToString("dd/MM/yyyy") %>
                    </p>
                    <p>
                        <%# Eval("Absolute_vn") %>
                    </p>
                    
                     <div style="text-align: right; text-decoration: none; padding-bottom: 15px">
                        <a href='/News/Detail.aspx?t=tin-tuc&textid=<%# Eval("IntId") %>' style="margin-right: 20px;
                            text-decoration: none">Chi tiết >></a>
                    </div>
                
                </li>
            </ItemTemplate>
            <FooterTemplate>
                
                </ul> </div>
               
                <asp:Repeater ID="repNewChildren" runat="server">
                    <HeaderTemplate>
                        <div style="margin-left: 15px;padding-bottom:10px">
                            <h2 style="color: #000000; font-weight: bold; font-size: 13px;">
                                Tin tức khác:</h2>
                            <ul>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <li style="text-align: left; margin-left: 10px;">
                            <img src="/images/bullet1.gif" />
                            <a href='/News/Detail.aspx?t=tin-tuc&textid=<%# Eval("IntId") %>' style="margin-left: 5px;
                                text-decoration: none; color: Maroon">
                                <%# Eval("title_vn") %>
                            </a>(
                            <%#DateTime.Parse(Eval("CreatedDate").ToString()).ToString("dd/MM/yyyy") %>) </li>
                    </ItemTemplate>
                    <FooterTemplate>
                        </ul> </div>
                    </FooterTemplate>
                </asp:Repeater>
            </FooterTemplate>
        </asp:Repeater>
    </div>
</div>
